function [A,B] = betaAB(mu,sig)
% function [A,B] = betaAB(mu,sig)
% Calculates the A and B parameters of a beta distribution with mean mu
% and standard deviation sig

A = mu*(mu*(1-mu)/sig^2-1);
B = (1-mu)*(mu*(1-mu)/sig^2-1);